// 定义specification服务层
app.service('specificationService', function ($http) {

    this.findPage = function (page, rows) {
        return $http.get("../specification/findByPage/" + page + "/" + rows);
    };

    this.add = function (specification) {
        return $http.post('../specification/add', specification);
    };

    this.update = function (specification) {
        return $http.post('../specification/update', specification);
    };

    this.findById = function (id) {
        return $http.get('../specification/findById?id=' + id);
    };

    this.dele = function (ids) {
        return $http.get('../specification/delete/' + ids);
    };

});